home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
kcl
/
akcl
/
akcl1615.lha
/
lsp
/
dbind.lisp
< prev
next >
Wrap
Lisp/Scheme
|
1988-11-16
|
322b
|
16 lines
(in-package 'si)
;(defun joe ()
; (dbind ((a) b) (foo) (print (list a b))))
(defmacro destructuring-bind
(al val &body body &aux *dl* (*key-check* nil)
(*arg-check* nil) (sym (gensym)))
(dm-vl al sym t)
`(compiler::stack-let
((,sym (cons nil ,val)))
(let* (,@ (nreverse *dl*))
,@body)))